import http from '../http';

export function login(params: UserApi.LoginParams) {
  return http.post<Requestor.Response<UserApi.LoginResponse>>('/api/admin/Login/open/login/pwd', {
    data: params,
  });
}
export function logout() {
  return http.post<Requestor.TeamplateResponse>('/api/admin/AdminUserBase/outlogin');
}

export function getCode() {
  return http.get<Requestor.Response<UserApi.ImageCodeResponse>>('/api/admin/Login/get/image');
}
